package jastgen.util;

public class Util {

	public static boolean eq(
			final Object lhs,
			final Object rhs)
	{
		if(lhs == null)
			return rhs == null;
		return lhs.equals(rhs);
	}

	public static int hash(
			final Object x)
	{
		if(x == null)
			return 0;
		return x.hashCode();
	}
}
